/*
 * Copyright (C) 2010 M. Hautle.
 * 
 * This file is part of SimpleEL.
 * 
 * SimpleEL is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your option) any later version.
 * 
 * SimpleEL is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License along with SimpleEL. If not, see <http://www.gnu.org/licenses/>.
 */
package ch.simpleel.util;

import ch.simpleel.data.*;

/**
 * Benchmark of {@link MiscUtils#copyValues(Object, Object)} and {@link MiscUtils#copyValuesTo(Object, Object, String...)}.
 * 
 * @author M. Hautle
 */
public class MiscTest extends Common {
    /** Empty ignore list. */
    private static final String[] EMPTY = new String[0];

    /**
     * {@inheritDoc}
     */
    @Override
    protected void executeCopy(TheDom dom, TheDom dom2) {
        MiscUtils.copyValues(dom, dom2);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    protected void executeCopy(TheDom dom, AOtherDom dom2) {
        MiscUtils.copyValuesTo(dom, dom2, EMPTY);
    }

    /**
     * VM Args:<br>
     * 
     * <pre>
     * -server / -client
     * -Xms512m -Xmx512m
     * -XX:+PrintCompilation 
     * -verbose:gc
     * </pre>
     * 
     * @param args
     */
    public static void main(String[] args) throws Exception {
        new MiscTest().executeBenchmark();
    }
}
